<!DOCTYPE html>
<html>

<head>
<title></title>
<meta http-equiv="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="renderer" content="webkit">

<%include("/common/include.html"){}%>
<style type="text/css">
</style>
</head>

<body class="easyui-layout">
	<table id="outinTable" class="easyui-datagrid" style="height:100%;">
		
	</table>
	
	<form id="outinForm">
		<input type="hidden" value="${selOrganIds! }" name="_query.selOrganIds">
		<input type="hidden" value="${productIds! }" name="_query.productIds">
		<input type="hidden" value="${gxsj! }" name="_query.gxsj">
<!-- 		<div id="tb" style="height:auto"> -->
<!-- 			价格表名称:<input id="priceName" class="easyui-textbox theme-textbox-radius" style="width: 38%;" data-options="prompt:'例：上海价格表',required:true"> -->
<!-- 		</div> -->
	</form>
	
	<script type="text/javascript">
		var $form = $('#outinForm');
	
		(function($){
			var columns = [[
					  		{field:'organIds',title:'organIds',width:100,align:'center', hidden:true},
					  		{field:'productIds',title:'productIds',width:100,align:'center', hidden:true},
					  		{field:'style',title:'方式',width:100,align:'center',
					  			formatter: function(value,row,index){
					  				var style = row.style;
					  				var r;
					  				if(style == '0'){
					  					r = "入库";
					  				}else if(style == '1'){
					  					r = "出库";
					  				}else if(style == '2'){
					  					r = "退货";
					  				}else if(style == '3'){
					  					r = "销售";
					  				}
									return r;
								}	
					  		},
					  		{field:'name',title:'产品名称',width:100, align:'center'},
					  		{field:'type',title:'产品类型',width:100, align:'center'},
					  		{field:'number',title:'数量(个)',width:80, align:'center'},
					  		{field:'gxsj',title:'操作时间',width:160, align:'center'},
					  		{field:'reason',title:'原因',width:160, align:'center'},
					      ]];
			$('#outinTable').datagrid({
				cls: "theme-datagrid",
// 				toolbar: '#tb',
				singleSelect: true,
				rownumbers: true, //显示序号
				pagination: true,
				pageSize: 30,
				showFooter: true,
				url: "${cxt!}/productStockStatistic/outinView",
				queryParams: sy.serializeObject($form),
			    method: 'post',
				columns:columns,
				onLoadSuccess:function(){
		        	
				},
				onClickRow:function(index, rowData){
					
				}
			});
		})(jQuery);
	</script>

</body>
</html>